<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>扇形绘制</title>
		<style type="text/css">
			*{
				padding: 0;
				margin: 0;
			}
			.container {
				width: 100vw;
				height: 100vh;
				display: flex;
				align-items: center;
				justify-content: center;
			}
			canvas {
				width: 500px;
				height: 500px;
				border: 2px solid blue;
			}
		</style>
	</head>
	<body>
		<div class="container">
			<canvas id="canvas" width="500" height="500"></canvas>
		</div>
	</body>
	<script>
		window.onload = function(){
			let oCanvas = document.getElementById('canvas');
			
			console.dir(oCanvas);
			
			let oPen = oCanvas.getContext("2d");
			
			let data = [{
				name:'王',
				sex:'男'
			}];
			
			data.name
			
			let datal = [{
				name: '王',
				sex: '男'
			}]
			
			for(var i = 0; i < datal.length; i++){
			    console.dir(datal[i].sex);
			}
			
			//1~100
			
			
			
			//console.dir(oPen);
			
			//函数
			//function creatSector(oPen,x,y,r, date){}
				
			}
	</script>
</html>
